<?php

class GameReceiveGiftCodeAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING
    );

    /**
     * 获取礼包码礼包
     * 
     * @param int $userId 用户ID
     * @param string $giftCode 礼包码
     * @return SzResponse
     */
    public function execute($userId, $giftCode)
    {
        return $this->buildResponse(array(
            'status' => GmToolsGiftCodeService::get()->receiveGiftCodeReward($userId, $giftCode)
        ));
    }
}